﻿<%@ Page Title="Builders" Language="C#" MasterPageFile="~/CDBPage.master" AutoEventWireup="true"
         CodeFile="Builders.aspx.cs" Inherits="Builders" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<meta name="keyword" content="Builders" />
<meta name="description" content="Builders" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script type="text/javascript" src="js/jquery.prettyPhoto.js"></script>
    <link rel="stylesheet" href="css/prettyPhoto.css"/>
    <script type="text/javascript" charset="utf-8">
        $(document).ready(function() {
            $("a[rel^='prettyPhoto']").prettyPhoto({
                custom_markup: '<div id="map_canvas" style="width:500px; height:300px"></div>',
            });
        });
    </script>
    <section class="content">
        <div class="inner-billboard">
            <h3>Builders</h3>
            <blockquote></blockquote>
        </div>
            <div style="min-height: 300px;">
                <div style="float:left;">
                    To view our list of builders select the appropriate City.
                </div>
                <div style="float: right;">
                    City
                    <asp:DropDownList ID="ddlCity" runat="server" data-rel="chosen" AutoPostBack="true"
                                      OnSelectedIndexChanged="ddlCity_SelectedIndexChanged">
                                      <asp:ListItem Text="Select Property Location" Value=""></asp:ListItem>
                                        <asp:ListItem Text="Ahmedabad" Value="Ahmedabad"></asp:ListItem>
                                        <asp:ListItem Text="Banglore" Value="Banglore"></asp:ListItem>
                                        <asp:ListItem Text="Cochin" Value="Cochin"></asp:ListItem>
                                        <asp:ListItem Text="Pune" Value="Pune"></asp:ListItem>
                    </asp:DropDownList>
                </div>
                <br />
                <br />
                <br />
                <div class="news-gallery">
                    <asp:DataList ID="dListBuilders" runat="server" RepeatColumns="3" 
                        RepeatDirection="Horizontal" Width="100%" 
                        onitemdatabound="dListBuilders_ItemDataBound">
                        <ItemTemplate>
                            <ul>
                                <li class="ease">
                                    <h2><a href="BuilderDetail.aspx?id=<%#Eval("Id") %>">
                                            <%#Eval("Name") %></a></h2>
                                    <asp:Label id="spanDate" style="display: none;" runat="server" Text='<%#Eval("DateCreated")%>'></asp:Label>
                                        <span id="spDateCreated" runat="server">
                                            <%--<small>May</small>
                                            <div>28</div>--%>
                                        </span>
                                    <p><%--<%#Eval("PresenceIn") %>--%></p>
                                </li>
                            </ul>
                        </ItemTemplate>
                    </asp:DataList>
                    <asp:GridView ID="grdBuilders" runat="server" ShowFooter="false" AutoGenerateColumns="false"
                                  CssClass="distinctive_grid" Visible="false">
                        <Columns>
                            <asp:TemplateField HeaderText="Name">
                                <ItemTemplate>
                            
                                </ItemTemplate>
                                <HeaderStyle CssClass="distinctive_grid_heading" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Prescense">
                                <ItemTemplate>
                            
                                </ItemTemplate>
                                <HeaderStyle CssClass="distinctive_grid_heading" />
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </div>
            </div>
        
    </section>
</asp:Content>